package com.afkx.oop.demo8;

/**
 * @ClassName 用户类
 * @Description TODO
 * @Author Kx
 * @Date 2025/3/4 13:31
 * @Version 1.0
 */
public class User extends Person{
    public User(String name){
        super(name);
    }

    @Override
    public void open() {
        System.out.println(super.getName() + "打开门");
    }

    @Override
    public void close() {
        System.out.println(super.getName() + "关闭门");
    }
}
